]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
AltTabSwitcherPopup: check the number of items after creating the popup child
authorSebastien Lafargue <slaf66@gmail.com>
Fri, 25 Oct 2013 17:02:59 +0000 (19:02 +0200)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Sat, 26 Oct 2013 14:29:27 +0000 (16:29 +0200)
The popup can be empty if the alt-tab switcher is configured
in workspace-only mode, even if there are applications running.

https://bugzilla.gnome.org/show_bug.cgi?id=710745

js/ui/altTab.js

index 779ae7b550dcbd2c826f0b5d8d62da5a7e1044da..b39cc817e8083d2c7fb215dc551adc1ee6222472 100644 (file)
@@ -106,6 +106,8 @@ const AppSwitcherPopup = new Lang.Class({
 
         this._switcherList = new AppSwitcher(apps, this);
         this._items = this._switcherList.icons;
+        if (this._items.length == 0)
+            return false;
 
         return true;
     },
@@ -375,6 +377,9 @@ const WindowSwitcherPopup = new Lang.Class({
         this._switcherList = new WindowList(windows, mode);
         this._items = this._switcherList.icons;
 
+        if (this._items.length == 0)
+            return false;
+
         return true;
     },